<body>
	<div id="tools" class="datagrid-toolbar">
		<a onclick="$('#search').toggle();" class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-search" plain="true" id=""><span class="l-btn-left"><span class="l-btn-text icon-search l-btn-icon-left">查询</span></span></a>
    </div>
    
    <div id="search" class="datagrid-toolbar" style="display:none;">
		<table>
			<tbody><tr>
				<td align="right">申请人：</td>
				<td align="left"><input name="applyUserName" id="applyUserName"></td>
				<td align="right">
					类型：
				</td>
				<td align="left">
					<select id="type" name="type">
						<option value="">全部</option>
						<option value="0">用印章审批</option>
						<option value="1">借印章审批</option>
						<option value="21">装修工程需求表</option>
						<option value="22">供应商评审表</option>
						<option value="23">装修合同审批表</option>
						<option value="24">阶段装修验收审批</option>
						<option value="31">采购需求表</option>
						<option value="32">采购审批表</option>
						<option value="33">采购合同审批</option>
						<option value="8">用车登记申请表</option>
						<option value="41">大型活动预算审批表申请</option>
						<option value="42">大型活动费用决算表</option>
						<option value="5">出境考察申请</option>
						<option value="61">人员需求申请表</option>
						<option value="62">正式员工录用审批表</option>
						<option value="66">实习、兼职员工录用审批表</option>
						<option value="63">转正审批表</option>
						<option value="64">续签审批表</option>
						<option value="65">离职审批表</option>
						<option value="71">品牌加盟申请审批</option>
						<option value="72">活动品牌使用审批</option>
						<option value="9">其他审批</option>
						<option value="81">财务审批</option>
						<option value="67">员工休假审批</option>
						<option value="68">出差任务审批</option>
					</select>
				</td>
				<td>
					<a class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-search" plain="true" onclick="query();" id=""><span class="l-btn-left"><span class="l-btn-text icon-search l-btn-icon-left">确定</span></span></a>
					<a class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-cancel" plain="true" onclick="requery();" id=""><span class="l-btn-left"><span class="l-btn-text icon-cancel l-btn-icon-left">清空</span></span></a>
				</td>
			</tr>
		</tbody></table>
    </div>
	<div class="panel datagrid" style="width: auto;"><div class="datagrid-wrap panel-body panel-body-noheader" title="" style="width: 739px; height: auto;"><div class="datagrid-view" style="width: 739px; height: 275px;"><style type="text/css">
div.datagrid-cell-c1-applyUser-truename {width:62px;}
div.datagrid-cell-c1-applyDept-deptname {width:122px;}
div.datagrid-cell-c1-commitDate {width:112px;}
div.datagrid-cell-c1-type {width:82px;}
div.datagrid-cell-c1-status {width:62px;}
div.datagrid-cell-c1-applyDate {width:112px;}
div.datagrid-cell-c1-createUserName {width:62px;}
div.datagrid-cell-c1-createUserId {width:172px;}
</style><div class="datagrid-view1" style="width: 41px;"><div class="datagrid-header" style="width: 41px; height: 24px;"><div class="datagrid-header-inner" style="display: block;"><table class="datagrid-htable" border="0" cellspacing="0" cellpadding="0" style="height: 25px;"><tbody><tr class="datagrid-header-row"><td rowspan="0"><div class="datagrid-header-rownumber"></div></td></tr></tbody></table></div></div><div class="datagrid-body" style="width: 41px; height: 250px;"><div class="datagrid-body-inner"><table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0" style="table-layout: auto;"><tbody><tr id="datagrid-row-r1-1-0" datagrid-row-index="0" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">1</div></td></tr><tr id="datagrid-row-r1-1-1" datagrid-row-index="1" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">2</div></td></tr><tr id="datagrid-row-r1-1-2" datagrid-row-index="2" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">3</div></td></tr><tr id="datagrid-row-r1-1-3" datagrid-row-index="3" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">4</div></td></tr><tr id="datagrid-row-r1-1-4" datagrid-row-index="4" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">5</div></td></tr><tr id="datagrid-row-r1-1-5" datagrid-row-index="5" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">6</div></td></tr><tr id="datagrid-row-r1-1-6" datagrid-row-index="6" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">7</div></td></tr><tr id="datagrid-row-r1-1-7" datagrid-row-index="7" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">8</div></td></tr><tr id="datagrid-row-r1-1-8" datagrid-row-index="8" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">9</div></td></tr><tr id="datagrid-row-r1-1-9" datagrid-row-index="9" class="datagrid-row" style="height: 25px;"><td class="datagrid-td-rownumber"><div class="datagrid-cell-rownumber">10</div></td></tr></tbody></table></div></div><div class="datagrid-footer" style="width: 41px;"><div class="datagrid-footer-inner" style="display: none;"></div></div></div><div class="datagrid-view2" style="width: 698px;"><div class="datagrid-header" style="width: 698px; height: 24px;"><div class="datagrid-header-inner" style="display: block;"><table class="datagrid-htable" border="0" cellspacing="0" cellpadding="0" style="height: 25px;"><tbody><tr class="datagrid-header-row"><td field="id"><div class="datagrid-header-check"><input type="checkbox"></div></td><td field="applyUser.truename"><div class="datagrid-cell" style="width: 44px;"><span>申请人</span><span class="datagrid-sort-icon">&nbsp;</span></div></td><td field="applyDept.deptname" class=""><div class="datagrid-cell" style="width: 90px;"><span>申请部门</span><span class="datagrid-sort-icon">&nbsp;</span></div></td><td field="commitDate"><div class="datagrid-cell" style="width: 82px;"><span>申请时间</span><span class="datagrid-sort-icon">&nbsp;</span></div></td><td field="type"><div class="datagrid-cell" style="width: 60px;"><span>表单类型</span><span class="datagrid-sort-icon">&nbsp;</span></div></td><td field="status"><div class="datagrid-cell" style="width: 44px;"><span>表单状态</span><span class="datagrid-sort-icon">&nbsp;</span></div></td><td field="applyDate"><div class="datagrid-cell" style="width: 82px;"><span>创建时间</span><span class="datagrid-sort-icon">&nbsp;</span></div></td><td field="createUserName"><div class="datagrid-cell" style="width: 44px;"><span>创建人</span><span class="datagrid-sort-icon">&nbsp;</span></div></td><td field="createUserId"><div class="datagrid-cell" style="width: 135px;"><span>操作</span><span class="datagrid-sort-icon">&nbsp;</span></div></td></tr></tbody></table></div></div><div class="datagrid-body" style="width: 698px; height: 250px;"><table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0" style="table-layout: auto;"><tbody><tr id="datagrid-row-r1-2-0" datagrid-row-index="0" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="216572"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-11-04 10:44:15</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">用印章审批</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">部分审批</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-11-04 10:42:46</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:toCreateUrl(216572,0);">审批链接</a>&nbsp;&nbsp;&nbsp;<a href="javascript:view(216572,0,3);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(216572,0,null);">打印预览</a></div></td></tr><tr id="datagrid-row-r1-2-1" datagrid-row-index="1" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="216512"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-11-03 16:42:25</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">采购审批表</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">部分审批</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-11-03 16:34:48</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:toCreateUrl(216512,32);">审批链接</a>&nbsp;&nbsp;&nbsp;<a href="javascript:view(216512,32,3);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(216512,32,null);">打印预览</a></div></td></tr><tr id="datagrid-row-r1-2-2" datagrid-row-index="2" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="215937"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-10-27 15:43:37</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">用印章审批</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">部分审批</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-10-27 15:42:48</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:toCreateUrl(215937,0);">审批链接</a>&nbsp;&nbsp;&nbsp;<a href="javascript:view(215937,0,3);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(215937,0,null);">打印预览</a></div></td></tr><tr id="datagrid-row-r1-2-3" datagrid-row-index="3" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="215936"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-10-27 15:41:06</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">采购需求表</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">已审批</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-10-27 15:40:55</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:view(215936,31,2);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(215936,31,null);">打印预览</a></div></td></tr><tr id="datagrid-row-r1-2-4" datagrid-row-index="4" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="215510"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-10-24 14:37:39</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">财务审批</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">已审批</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-10-21 14:01:56</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:view(215510,81,2);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(215510,81,1);">打印预览</a></div></td></tr><tr id="datagrid-row-r1-2-5" datagrid-row-index="5" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="215136"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-10-16 17:21:25</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">财务审批</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">已审批</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-10-16 16:51:33</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:view(215136,81,2);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(215136,81,1);">打印预览</a></div></td></tr><tr id="datagrid-row-r1-2-6" datagrid-row-index="6" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="214822"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-10-14 11:48:57</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">用印章审批</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">部分审批</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-10-14 11:47:57</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:toCreateUrl(214822,0);">审批链接</a>&nbsp;&nbsp;&nbsp;<a href="javascript:view(214822,0,3);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(214822,0,null);">打印预览</a></div></td></tr><tr id="datagrid-row-r1-2-7" datagrid-row-index="7" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="214780"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-10-14 11:45:47</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">采购审批表</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">已审批</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-10-14 09:00:32</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:view(214780,32,2);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(214780,32,null);">打印预览</a></div></td></tr><tr id="datagrid-row-r1-2-8" datagrid-row-index="8" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="214683"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-10-13 13:20:03</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">采购需求表</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">已审批</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-10-13 13:19:50</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:view(214683,31,2);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(214683,31,null);">打印预览</a></div></td></tr><tr id="datagrid-row-r1-2-9" datagrid-row-index="9" class="datagrid-row" style="height: 25px;"><td field="id"><div style="" class="datagrid-cell-check "><input type="checkbox" name="id" value="214429"></div></td><td field="applyUser.truename"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyUser-truename">舒沛谙</div></td><td field="applyDept.deptname"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDept-deptname">上海启迪创业孵化器有限公司</div></td><td field="commitDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-commitDate">2025-10-10 11:52:25</div></td><td field="type"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-type">用印章审批</div></td><td field="status"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-status">被驳回</div></td><td field="applyDate"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-applyDate">2025-10-10 11:50:20</div></td><td field="createUserName"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserName">舒沛谙</div></td><td field="createUserId"><div style="height:auto;" class="datagrid-cell datagrid-cell-c1-createUserId">&nbsp;&nbsp;&nbsp;<a href="javascript:edit(214429,0);">编辑</a>&nbsp;&nbsp;&nbsp;<a href="javascript:remove(214429);">删除</a>&nbsp;&nbsp;&nbsp;<a href="javascript:view(214429,0,4);">查看</a>&nbsp;&nbsp;&nbsp;<a href="javascript:toprint(214429,0,null);">打印预览</a></div></td></tr></tbody></table></div><div class="datagrid-footer" style="width: 698px;"><div class="datagrid-footer-inner" style="display: none;"></div></div></div><table id="list_data" style="display: none;"></table></div><div class="datagrid-pager pagination"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td><select class="pagination-page-list"><option>10</option><option>20</option><option>30</option><option>40</option><option>50</option></select></td><td><div class="pagination-btn-separator"></div></td><td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-first">&nbsp;</span></span></span></a></td><td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-prev">&nbsp;</span></span></span></a></td><td><div class="pagination-btn-separator"></div></td><td><span style="padding-left:6px;">第</span></td><td><input class="pagination-num" type="text" value="1" size="2"></td><td><span style="padding-right:6px;">共5页</span></td><td><div class="pagination-btn-separator"></div></td><td><a href="javascript:void(0)" class="l-btn l-btn-plain" id=""><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-next">&nbsp;</span></span></span></a></td><td><a href="javascript:void(0)" class="l-btn l-btn-plain" id=""><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-last">&nbsp;</span></span></span></a></td><td><div class="pagination-btn-separator"></div></td><td><a href="javascript:void(0)" class="l-btn l-btn-plain" id=""><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-load">&nbsp;</span></span></span></a></td></tr></tbody></table><div class="pagination-info">显示1到10,共41记录</div><div style="clear:both;"></div></div></div></div>
 


<script>

	$('#list_data').datagrid({
		url:contextPath+"manager/approvalprocesses?i="+new Date().getTime(),
		fitColumns:true,
		singleSelect:false,
		rownumbers:true,
		pagination:true,
		sortName:'id',
		sortOrder:'desc',
		method:'POST',
		//striped:true,//隔行变色
		onRowContextMenu: onRowContextMenu,//右键菜单
		onDblClickRow:dbClick,//行的双击事件
		queryParams:{},
		columns:[[
			{field:'id',checkbox:true},
			{field:'applyUser.truename',title:'申请人',width:70},
			{field:'applyDept.deptname',title:'申请部门',width:130},
			{field:'commitDate',title:'申请时间',width:120},
			{field:'type',title:'表单类型',width:90,formatter:typeRenderer},
			{field:'status',title:'表单状态',width:70,formatter:statusRenderer},
			{field:'applyDate',title:'创建时间',width:120},
			{field:'createUserName',title:'创建人',width:70},
			{field:'createUserId',title:'操作',width:180,formatter:editRenderer}
		]]
	});
	
	function typeRenderer(value,row,index){
		switch(value){
			case 0:
				return '用印章审批';
			case 1:
				return '借印章审批';
		    case 21:
		   	    return '装修工程需求表';
		   	case 22:
		   	    return '供应商评审表';
			case 23:
				return '装修合同审批表';
			case 24:
				return '阶段装修验收审批';
		    case 31:
		   	    return '采购需求表';
		   	case 32:
		   	    return '采购审批表';  
			case 33:
				return '采购合同审批';
			case 8:
				return '用车登记申请表';
		    case 41:
		   	    return '大型活动预算审批表申请';
		   	case 42:
		   	    return '大型活动费用决算表';  
			case 5:
				return '出境考察申请';
			case 61:
				return '人员需求申请表';
		    case 62:
		   	    return '正式员工录用审批表';
	   	    case 66:
	   	   		 return '实习、兼职员工录用审批表';
		   	case 63:
		   	    return '转正审批表';  
			case 64:
				return '续签审批表';
			case 65:
				return '离职审批表';
		    case 71:
		   	    return '品牌加盟申请审批';
		   	case 72:
		   	    return '活动品牌使用审批';  
			case 9:
				return '其他审批'; 	
			case 81:
				return '财务审批';
			case 67:
			    return '员工休假审批';
			case 68:
			    return '出差任务审批';	    		   	    		   	    		   	    		   	    		   	    		   	        
		   	default:
		   		return '未知'+value
		}
	}
	
	function statusRenderer(value,row,index){
		switch(value){
			case 0:
				return '未提交';
			case 1:
				return '待审批';
			case 3:
				return '部分审批';	
		    case 2:
		   	    return '已审批';	
		   	case 4:
		   	    return '被驳回';    	   	    		   	    		   	    		   	    		   	    		   	        
		   	default:
		   		return '未知'+value
		}
	}	

	//查询
	function query(){
		searchGo(contextPath+"manager/approvalprocesses?i="+new Date().getTime(),"#search","#list_data");
	}
	//清空
	function requery(){
		clearGo(contextPath+"manager/approvalprocesses?i="+new Date().getTime(),"#search","#list_data");
	}
	
	function editRenderer(value,row,index){
		var txt = "";
		if(row['status']==0||row['status']==1||row['status']==4){
		    txt+= "&nbsp;&nbsp;&nbsp;<a href=\"javascript:edit("+row['id']+","+row['type']+");\">编辑</a>&nbsp;&nbsp;&nbsp;";
			txt+= "<a href=\"javascript:remove("+row['id']+");\">删除</a>";
		}
		if(row['status']==1||row['status']==3){
			 txt+= "&nbsp;&nbsp;&nbsp;<a href=\"javascript:toCreateUrl("+row['id']+","+row['type']+");\">审批链接</a>";
		}
		txt += "&nbsp;&nbsp;&nbsp;<a href=\"javascript:view("+row['id']+","+row['type']+","+row['status']+");\">查看</a>";
		txt += "&nbsp;&nbsp;&nbsp;<a href=\"javascript:toprint("+row['id']+","+row['type']+","+row['rbType']+");\">打印预览</a>";
		if(row['status']==2&&row['type']==8){///用车申请
			txt += "&nbsp;&nbsp;&nbsp;<a href=\"javascript:viewReturn("+row['id']+");\">归还信息</a>";
		}
		if(row['status']==2&&row['type']==0&&row['isUpload']==null){//用印章申请
			txt += "&nbsp;&nbsp;&nbsp;<a href=\"javascript:toUpload("+row['id']+","+row['type']+");\">上传电子文档</a>";
		}
		return txt;
	}
	
	function toUpload(id,type){
		var msg = "用印章申请";
		var url = "borrowseal_view1.html?processid="+id+"&type="+type+"&status=2";
		parent.addTabs("上传电子文档-"+id,contextPath+"system/qdzxapproval/approval/"+url+"&_pfrid="+$.getUrlParam("_frid"));
	}
	
	function toCreateUrl(id,type){
		var url = "approval_userUrl.html?processid="+id+"&type="+type;
		parent.addTabs("审批链接-"+id,contextPath+"system/qdzxapproval/approval/"+url+"&_pfrid="+$.getUrlParam("_frid"));
	}

		function viewReturn(id){
			$.ajax({
				type : "GET",
				url : contextPath+"manager/carRegistrations/findByApprovalId/"+id, 
				data : null,
				dataType : "json",
				success : function(data){
						if(data.returnstatus==1){
							var msg = "行车记录查看";
							var url = "drivingrecord_view.html?id="+data.id;
							parent.addTabs("查看"+msg+"-"+data.id,contextPath+"system/qdzxapproval/approval/"+url+"&_pfrid="+$.getUrlParam("_frid"));
						}else{   
							var msg = "添加行车记录";
							var url = "drivingrecord_add.html?id="+data.id;
							parent.addTabs(""+msg+"-"+data.id,contextPath+"system/qdzxapproval/approval/"+url+"&_pfrid="+$.getUrlParam("_frid"));
						}
				},
				error:function(response){
					$.messager.alert("提示","出错了，请联系管理员!",'error',function(rt){
						$.messager.alert("提示",response.responseText,'error');
					});
				}	  
			});
		}
	
	function toReturn(id){

		var msg = "添加行车记录";
		var url = "drivingrecord_add.html?id="+id;
		
		parent.addTabs(""+msg+"-"+id,contextPath+"system/qdzxapproval/approval/"+url+"&_pfrid="+$.getUrlParam("_frid"));
	}

	//行的双击事件
	function dbClick(rowIndex,rowData){
		///parent.addTabs("编辑表单分类配置-"+rowData['id'],contextPath+"system/qdzxapproval/bustypetouser_add.html?id="+rowData['id']+"&_pfrid="+$.getUrlParam("_frid"));
	}
	
	function edit(id,type){
		var msg = "用印章申请";
		var url = "borrowseal_edit.html?processid="+id+"&type="+type;
		if(type=="1"){
			msg = "借印章申请"
			url = "borrowseal_edit.html?processid="+id+"&type="+type;
		}else if(type=="21"){
			msg = "装修工程需求申请";
			url = "decorateproject_edit.html?processid="+id+"&type="+type;
		}else if(type=="22"){
			msg = "供应商评审表";
			url = "projectsupplier_edit.html?processid="+id+"&type="+type;
		}else if(type=="31"){
			msg = "采购需求申请";
			url = "purchaseneeds_edit.html?processid="+id+"&type="+type; 
		}else if(type=="23"){
			msg = "装修合同审批申请";
			url = "decoratecontract_edit.html?processid="+id+"&type="+type;
		}else if(type=="24"){
			msg = "阶段装修验收审批";
			url = "stageacceptance_edit.html?processid="+id+"&type="+type;
		}else if(type == "61"){
			msg = "人员需求申请表";
			url = "personrequirement_edit.html?processid="+id+"&type="+type;
		}else if(type == "62"){
			msg = "正式员工录用审批表";
			url = "personrecruitment_edit.html?processid="+id+"&type="+type;
		}else if(type == "66"){
			msg = "实习、兼职员工录用审批表";
			url = "personrecruitmentsx_edit.html?processid="+id+"&type="+type;
		}else if(type == "32"){ 
			msg = "采购审批表";
			url = "purchase_approval_edit.html?processid="+id+"&type="+type;
		}else if(type == "33"){ 
			msg = "采购合同审批表";
			url = "purchasecontract_edit.html?processid="+id+"&type="+type;
		}else if(type == "63"){
			msg = "转正审批表";
			url = "personpositive_edit.html?processid="+id+"&type="+type;
		}else if(type == "41"){ 
			msg = "大型活动预算审批表申请"; 
			url = "activity_budget_edit.html?processid="+id+"&type="+type;  
		}else if(type == "42"){ 
			msg = "大型活动费用决算表申请"; 
			url = "activity_account_edit.html?processid="+id+"&type="+type;  
		}else if(type == "5"){ 
			msg = "出境考察申请"; 
			url = "exitmission_edit.html?processid="+id+"&type="+type;  
		}else if(type == "9"){ 
			msg = "其他审批申请"; 
			url = "otherapproval_edit.html?processid="+id+"&type="+type;  
		}else if(type == "72"){ 
			msg = "活动品牌使用审批"; 
			url = "brand_edit.html?processid="+id+"&type="+type;  
		}else if(type == "64"){
			msg = "续签审批表";
			url = "personrenew_edit.html?processid="+id+"&type="+type;  
		}else if(type == "71"){
			msg = "品牌加盟申请";
			url = "brandleague_edit.html?processid="+id+"&type="+type;  
		}else if(type == "65"){
			msg = "离职审批表";
			url = "persondeparture_edit.html?processid="+id+"&type="+type;  
		}else if(type == "8"){
			msg = "用车登记申请表";
			url = "carregistration_edit.html?processid="+id+"&type="+type;
		}else if(type == "81"){
			msg = "财务审批";
			url = "finance_edit.html?processid="+id+"&type="+type;
		}else if(type=="67"){
		   msg="人员休假审批";
		   url="employeeLeaveApply_edit.html?processid="+id+"&type="+type;
		}else if(type=="68"){
		   msg="出差任务审批";
		   url="businessmissi_edit.html?processid="+id+"&type="+type;
		}
		parent.addTabs("编辑"+msg+"-"+id,contextPath+"system/qdzxapproval/approval/"+url+"&_pfrid="+$.getUrlParam("_frid"));
	}
	
	function remove(id){
		$.messager.confirm('提示','确定要删除吗?',function(r){
			if(r){
				$.ajax({
					type : "POST",
					url : contextPath+"manager/approvalprocess/delete/"+id,
					data : null,
					dataType : "json",
					success : function(data){
						$.messager.alert("提示","删除成功!",'info',function(rt){
							window.parent.frames[""+$.getUrlParam("_frid")].location.reload();
						});
					},
					error:function(response){
						$.messager.alert("提示","出错了，请联系管理员!",'error',function(rt){
							$.messager.alert("提示",response.responseText,'error');
						});
					}	 
		
				});
			}
		});
	}
	
	function view(id,type,status){
		var msg = "用印章申请";
		var url = "borrowseal_view.html?processid="+id+"&type="+type+"&status="+status;
		if(type=="1"){
			msg = "借印章申请";
			url = "borrowseal_view.html?processid="+id+"&type="+type;
		}else if(type=="21"){
			msg = "装修工程需求申请";
			url = "decorateproject_view.html?processid="+id+"&type="+type;
		}else if(type=="22"){
			msg = "供应商评审表";
			url = "projectsupplier_view.html?processid="+id+"&type="+type;
		}else if(type=="31"){
			msg = "采购需求申请";
			url = "purchaseneeds_view.html?processid="+id+"&type="+type;
		}else if(type=="23"){
			msg = "装修合同审批申请";
			url = "decoratecontract_view.html?processid="+id+"&type="+type;
		}else if(type=="24"){
			msg = "阶段装修验收审批";
			url = "stageacceptance_view.html?processid="+id+"&type="+type;
		}else if(type == "61"){
			msg = "人员需求申请表";
			url = "personrequirement_view.html?processid="+id+"&type="+type;
		}else if(type == "62"){
			msg = "正式员工录用审批表";
			url = "personrecruitment_view.html?processid="+id+"&type="+type;
		}else if(type == "66"){
			msg = "实习、兼职员工录用审批表";
			url = "personrecruitmentsx_view.html?processid="+id+"&type="+type;
		}else if(type == "32"){
			msg = "采购审批";
			url = "purchase_approval_view.html?processid="+id+"&type="+type;
		}else if(type == "33"){ 
			msg = "采购合同审批表";   
			url = "purchasecontract_view.html?processid="+id+"&type="+type;
		}else if(type == "63"){
			msg = "转正审批表";
			url = "personpositive_view.html?processid="+id+"&type="+type;
		}else if(type == "41"){ 
			msg = "大型活动预算审批表申请";  
			url = "activity_budget_view.html?processid="+id+"&type="+type;   
		}else if(type == "42"){ 
			msg = "大型活动费用决算表申请";  
			url = "activity_account_view.html?processid="+id+"&type="+type;    
		}else if(type == "5"){ 
			msg = "出境考察申请"; 
			url = "exitmission_view.html?processid="+id+"&type="+type;   
		}else if(type == "9"){ 
			msg = "其他审批"; 
			url = "other_view.html?processid="+id+"&type="+type;  
		}else if(type == "72"){ 
			msg = "活动品牌使用审批"; 
			url = "brand_view.html?processid="+id+"&type="+type;  
		}else if(type == "64"){
			msg = "续签审批表";
			url = "personrenew_view.html?processid="+id+"&type="+type;
		}else if(type == "71"){
			msg = "品牌加盟申请";
			url = "brandleague_view.html?processid="+id+"&type="+type;
		}else if(type == "65"){
			msg = "离职审批表";
			url = "persondeparture_view.html?processid="+id+"&type="+type;  
		}else if(type == "8"){
			msg = "用车登记申请表";
			url = "carregistration_view.html?processid="+id+"&type="+type;
		}else if(type == "81"){
			msg = "财务审批";
			url = "finance_view.html?processid="+id+"&type="+type;
		}else if(type == "33"){ 
			msg = "采购合同审批表";
			url = "purchasecontract_view.html?processid="+id+"&type="+type;
		}else if(type=="67"){
		    msg="人员休假审批";
		    url="employeeLeaveApply_view.html?processid="+id+"&type="+type;
		}else if(type=="68"){
		    msg="出差任务审批";
		    url="businessmissi_view.html?processid="+id+"&type="+type;
		}
		parent.addTabs("查看"+msg+"-"+id,contextPath+"system/qdzxapproval/approval/"+url+"&_pfrid="+$.getUrlParam("_frid"));
	}
	
	function toprint(id,type,rbType){
		var msg = "用印章申请";
		var url = "borrowseal_print.html?processid="+id+"&type="+type;
		if(type=="1"){
			msg = "借印章申请";
			url = "borrowseal_print.html?processid="+id+"&type="+type;
		}else if(type=="21"){
			msg = "装修工程需求申请";
			url = "decorateproject_print.html?processid="+id+"&type="+type;
		}else if(type=="22"){
			msg = "供应商评审表";
			url = "projectsupplier_print.html?processid="+id+"&type="+type;
		}else if(type=="31"){
			msg = "采购需求申请";
			url = "purchaseneeds_print.html?processid="+id+"&type="+type;
		}else if(type=="23"){
			msg = "装修合同审批申请";
			url = "decoratecontract_print.html?processid="+id+"&type="+type;
		}else if(type=="24"){
			msg = "阶段装修验收审批";
			url = "stageacceptance_print.html?processid="+id+"&type="+type;
		}else if(type == "61"){
			msg = "人员需求申请表";
			url = "personrequirement_print.html?processid="+id+"&type="+type;
		}else if(type == "62"){
			msg = "正式员工录用审批表";
			url = "personrecruitment_print.html?processid="+id+"&type="+type;
		}else if(type == "66"){
			msg = "实习、兼职员工录用审批表";
			url = "personrecruitmentsx_print.html?processid="+id+"&type="+type;
		}else if(type == "32"){
			msg = "采购审批"; 
			url = "purchase_approval_print.html?processid="+id+"&type="+type;  
		}else if(type == "63"){
			msg = "转正审批表";
			url = "personpositive_print.html?processid="+id+"&type="+type;
		}else if(type == "41"){  
			msg = "大型活动预算审批表申请";  
			url = "activity_budget_print.html?processid="+id+"&type="+type;   
		}else if(type == "42"){ 
			msg = "大型活动费用决算表申请";  
			url = "activity_account_print.html?processid="+id+"&type="+type;    
		}else if(type == "33"){ 
			msg = "采购合同审批表";   
			url = "purchasecontract_print.html?processid="+id+"&type="+type;
		}else if(type == "5"){ 
			msg = "出境考察申请"; 
			url = "exitmission_print.html?processid="+id+"&type="+type;  
		}  else if(type == "9"){ 
			msg = "其他审批"; 
			url = "other_print.html?processid="+id+"&type="+type;  
		}else if(type == "72"){ 
			msg = "活动品牌使用审批";   
			url = "brand_print.html?processid="+id+"&type="+type;  
		} else if(type == "64"){
			msg = "续签审批表";
			url = "personrenew_print.html?processid="+id+"&type="+type;  
		}else if(type == "71"){
			msg = "品牌加盟申请";
			url = "brandleague_print.html?processid="+id+"&type="+type;  
		}else if(type == "65"){
			msg = "离职审批表";
			url = "persondeparture_print.html?processid="+id+"&type="+type;  
		}else if(type == "8"){
			msg = "用车登记申请表";
			url = "carregistration_print.html?processid="+id+"&type="+type;
		}else if(type == "81"){
			msg = "财务审批";
			url = "finance_print.html?processid="+id+"&type="+type;
			if(rbType==1){
				url = "finance_print_1.html?processid="+id+"&type="+type;
			}else if(rbType==2){
				url = "finance_print_2.html?processid="+id+"&type="+type;
			}
		}else if(type=="67"){
		    msg="人员休假审批";
		    url="employeeLeaveApply_print.html?processid="+id+"&type="+type;
		}else if(type=="68"){
		    msg="出差任务审批表";
		    url="businessmissi_print.html?processid="+id+"&type="+type;
		}   
		parent.addTabs("打印预览"+msg+"-"+id,contextPath+"system/qdzxapproval/approval/"+url+"&_pfrid="+$.getUrlParam("_frid"));
	}
</script>		 
<div id="loading1" style="position: absolute; left: 0px; top: 0px; width: 100%; height: 703px; background: rgb(232, 232, 232); opacity: 0.5; z-index: 10000; display: none;"></div><div id="loading2" class="panel-loading" style="position: fixed; top: 38%; left: 41%; border: 2px solid rgb(149, 184, 231); width: 160px; font-size: 14px; z-index: 10001; background: url(&quot;/system/jquery/themes/themes1/images/loading-1.gif&quot;) 10px 8px no-repeat rgb(255, 255, 255); display: none;">正在处理，请稍等...</div></body>